package com.lizard.schedule.net.http.request.bean;

import com.lizard.schedule.annotation.Request;
import com.lizard.schedule.net.http.consts.HttpConst;
import com.lizard.schedule.net.http.request.bean.base.BaseRequest;
import com.lizard.schedule.net.http.response.bean.RegistResponse;
import com.lizard.schedule.net.http.response.bean.ThirdLoginResponse;

/**
 * 第三方登录验证(本地SSO授权之后)
 *
 * Created by wangyiqian on 16/2/27.
 */
@Request(url = HttpConst.HTTP_DOMAIN + HttpConst.HTTP_PATH_THIRD_LOGIN,
        debugUrl = HttpConst.HTTP_DOMAIN_DEBUG + HttpConst.HTTP_PATH_THIRD_LOGIN,
        method = Request.Method.POST,
        responseClazz = ThirdLoginResponse.class)
public class ThirdLoginRequest extends BaseRequest {

    /**
     * 登录方式：微博
     */
    public static final int TYPE_WEIBO = 1;

    /**
     * 登录方式：QQ
     */
    public static final int TYPE_QQ = 2;

    /**
     * 登录方式
     */
    private int type;

    /**
     * 第三方uid
     */
    private String uid;

    /**
     * 第三方accessToken
     */
    private String accessToken;

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public String getAccessToken() {
        return accessToken;
    }

    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken;
    }
}
